import request from "@/utils/request";
//门店订单列表
export function selectOrderList(data) {
  return request({
    url: "/smkapi/Norder/selectOrderList",
    method: "post",
    data
  });
}
//门店订单详情
export function findOrderInfo(data) {
  return request({
    url: "/smkapi/Norder/findOrderInfo",
    method: "post",
    data
  });
}

export function selectErpOrgGoodsList(data) {
  return request({
    url: "/smkapi/Norder/selectErpOrgGoodsList",
    method: "post",
    data
  });
}
//编辑门店订单详情
export function editOrderInfo(data) {
  return request({
    url: "/smkapi/Norder/editOrderInfo",
    method: "post",
    data
  });
}
//门店订单确认发货
export function confirmOrder(data) {
  return request({
    url: "/smkapi/Norder/confirmOrder",
    method: "post",
    data
  });
}
//机构
export function selectOrgData(data) {
  return request({
    url: "/smkapi/org/selectOrgData",
    method: "post",
    data
  });
}
//拉取
export function pullOrderData(data) {
  return request({
    url: "/smkapi/Norder/pullOrderData",
    method: "post",
    data
  });
}
//获取机构
export function selectSmkOrgJGData(data) {
  return request({
    url: "/smkapi/org/selectSmkOrgJGData",
    method: "post",
    data
  });
}
//获取商品
export function selectErpGoodsData(data) {
  return request({
    url: "/smkapi/goods/selectErpGoodsData",
    method: "post",
    data
  });
}
//获取供应商
export function getSupplierByBindGoods(data) {
  return request({
    url: "/smkapi/supplier/getSupplierByBindGoods",
    method: "post",
    data
  });
}
//获取供应商
export function addOrderInfo(data) {
  return request({
    url: "/smkapi/Norder/addOrderInfo",
    method: "post",
    data
  });
}
//查询订单审核操作
export function getBillOperationData(data) {
  return request({
    url: "/smkapi/Operation/getBillOperationData",
    method: "post",
    data
  });
}
//批次
export function getUnAvgBatch(data) {
  return request({
    url: "/smkapi/goods/getUnAvgBatchBySupplier",
    method: "post",
    data
  });
}
//批次
export function selectErpOrderGoodsData(data) {
  return request({
    url: "/smkapi/goods/selectErpOrderGoodsData",
    method: "post",
    data
  });
}
//同步列表
export function synchroStockByOld(data) {
  return request({
    url: "/smkapi/Norder/synchroStockByOld",
    method: "post",
    data
  });
}
//添加行采订单
export function addHangCaiOrderInfo(data) {
  return request({
    url: "/smkapi/Norder/addHangCaiOrderInfo",
    method: "post",
    data
  });
}
//修改行采订单
export function editHangCaiOrderInfo(data) {
  return request({
    url: "/smkapi/Norder/editHangCaiOrderInfo",
    method: "post",
    data
  });
}
//行采确认发货
export function confirmHangCaiOrder(data) {
  return request({
    url: "/smkapi/Norder/confirmHangCaiOrder",
    method: "post",
    data
  });
}
//一品多店添加
export function createOrderByMultiStore(data) {
  return request({
    url: "/smkapi/Norder/createOrderByMultiStore",
    method: "post",
    data
  });
}

//删除
export function deleteOrder(data) {
  return request({
    url: "/smkapi/Norder/deleteOrder",
    method: "post",
    data
  });
}
//获取来源
export function getSourceData(data) {
  return request({
    url: "/smkapi/option/getSourceData",
    method: "post",
    data
  });
}
//获取来源
export function createOrderByMultiStoreNoSend(data) {
  return request({
    url: "smkapi/Norder/createOrderByMultiStoreNoSend",
    method: "post",
    data
  });
}
//商超商品获取到店价接口
export function getFixedPrice(data) {
  return request({
    url: "smkapi/goods/getFixedPrice",
    method: "post",
    data
  });
}
//商超商品获取到店价接口
export function getPackageBoxData(data) {
  return request({
    url: "smkapi/Packagebox/getPackageBoxData",
    method: "post",
    data
  });
}
